package com.nftturbo.base.statemachine;

/**
 * 状态机
 *
 * @author 11522
 * @since 2024/7/14 2:17
 **/
public interface StateMachine<STATE, EVENT> {
    /**
     * 状态机转移
     *
     * @param state 状态
     * @param event 事件
     * @return 状态
     */
    public STATE transition(STATE state, EVENT event);
}
